<include file="Public/min-header"/>

<link href="__PUBLIC__/plugins/daterangepicker/daterangepicker-bs3.css" rel="stylesheet" type="text/css" />
<script src="__PUBLIC__/plugins/daterangepicker/moment.min.js" type="text/javascript"></script>
<script src="__PUBLIC__/plugins/daterangepicker/daterangepicker.js" type="text/javascript"></script>

<div class="wrapper">
    <include file="Public/breadcrumb"/>
    <section class="content" style="padding:0px 15px;">
        <!-- Main content -->
        <div class="container-fluid">
            <div class="pull-right">
                <a href="javascript:history.go(-1)" data-toggle="tooltip" title="" class="btn btn-default" data-original-title="返回"><i class="fa fa-reply"></i></a>
            </div>
            <div class="panel panel-default">
                <div class="panel-body ">
                    <ul class="nav nav-tabs">
                        <foreach name="group_list" item="vo" key="k">
                            <li <if condition="$k eq 'index_img'">class="active"</if>><a href="javascript:void(0)" data-url="{:U('System/index',array('inc_type'=>$k))}" data-toggle="tab" onclick="goset(this)">{$vo}</a></li>
                        </foreach>
                    </ul>
                    <!--表单数据-->
                    <form method="post" id="handlepost" action="{:U('System/handle')}">
                        <!--通用信息-->
                        <div class="tab-content" style="padding:20px 0px;">
                            <div class="tab-pane active" id="tab_tongyong">

                                <div ><span style="color:#00FF00;font-size: 20px;margin:20px 100px;">PC端首页图片</span></div>


                                <table class="table table-bordered">
                                    <tbody>
                                    <tr>
                                        <td>首页banner图：</td>
                                        <td>
                                            <input type="button" class="button" onClick="GetUploadify(1,'banner_img','logo','')"  value="上传图片"/>
                                            <input type="text" id="banner_img" class="input-sm" name="banner_img" value="{$config.banner_img}" >
                                            <if condition="$config['banner_img'] neq null">
                                                &nbsp;&nbsp;
                                                <a target="_blank" href="{$config.banner_img}"  >
                                                    <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                </a>
                                            </if>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>首页购物流程引导图：</td>
                                        <td>
                                            <input type="button" class="button" onClick="GetUploadify(1,'lead_img','logo','')"  value="上传图片"/>
                                            <input type="text" id="lead_img" class="input-sm" name="lead_img" value="{$config.lead_img}" >
                                            <if condition="$config['lead_img'] neq null">
                                                &nbsp;&nbsp;
                                                <a target="_blank" href="{$config.lead_img}"  >
                                                    <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                </a>
                                            </if>
                                        </td>
                                    </tr>

                                    <tr>
                                        <td>底部关注公众号二维码：</td>
                                        <td>
                                            <input type="button" class="button" onClick="GetUploadify(1,'rq_code_img','logo','')"  value="上传图片"/>
                                            <input type="text" id="rq_code_img" class="input-sm" name="rq_code_img" value="{$config.rq_code_img}" >
                                            <if condition="$config['rq_code_img'] neq null">
                                                &nbsp;&nbsp;
                                                <a target="_blank" href="{$config.rq_code_img}"  >
                                                    <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                </a>
                                            </if>
                                        </td>
                                    </tr>


                                    <tr>
                                        <td>首页店铺类型图标1：</td>
                                        <td>
                                            <input type="button" class="button" onClick="GetUploadify(1,'index_icon1','logo','')"  value="上传图片"/>
                                            <input type="text" id="index_icon1" class="input-sm" name="index_icon1" value="{$config.index_icon1}" >

                                            <if condition="$config['index_icon1'] neq null">
                                                &nbsp;&nbsp;
                                                <a target="_blank" href="{$config.index_icon1}"  >
                                                    <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                </a>
                                            </if>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td>首页店铺类型图标1：<br/><span style="color:red;">(鼠标经过时显示)</span></td>
                                        <td>
                                            <input type="button" class="button" onClick="GetUploadify(1,'index_icon1_m','logo','')"  value="上传图片"/>
                                            <input type="text" id="index_icon1_m" class="input-sm" name="index_icon1_m" value="{$config.index_icon1_m}" >

                                            <if condition="$config['index_icon1_m'] neq null">
                                                &nbsp;&nbsp;
                                                <a target="_blank" href="{$config.index_icon1_m}"  >
                                                    <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                </a>
                                            </if>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td>首页店铺类型图标2：</td>
                                        <td>
                                            <input type="button" class="button" onClick="GetUploadify(1,'index_icon2','logo','')"  value="上传图片"/>
                                            <input type="text" id="index_icon2" class="input-sm" name="index_icon2" value="{$config.index_icon2}" >

                                            <if condition="$config['index_icon2'] neq null">
                                                &nbsp;&nbsp;
                                                <a target="_blank" href="{$config.index_icon2}"  >
                                                    <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                </a>
                                            </if>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>首页店铺类型图标2：<br/><span style="color:red;">(鼠标经过时显示)</span></td>
                                        <td>
                                            <input type="button" class="button" onClick="GetUploadify(1,'index_icon2_m','logo','')"  value="上传图片"/>
                                            <input type="text" id="index_icon2_m" class="input-sm" name="index_icon2_m" value="{$config.index_icon2_m}" >

                                            <if condition="$config['index_icon2_m'] neq null">
                                                &nbsp;&nbsp;
                                                <a target="_blank" href="{$config.index_icon2_m}"  >
                                                    <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                </a>
                                            </if>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td>首页店铺类型图标3：</td>
                                        <td>
                                            <input type="button" class="button" onClick="GetUploadify(1,'index_icon3','logo','')"  value="上传图片"/>
                                            <input type="text" id="index_icon3" class="input-sm" name="index_icon3" value="{$config.index_icon3}" >
                                            <if condition="$config['index_icon3'] neq null">
                                                &nbsp;&nbsp;
                                                <a target="_blank" href="{$config.index_icon3}"  >
                                                    <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                </a>
                                            </if>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>首页店铺类型图标3：<br/><span style="color:red;">(鼠标经过时显示)</span></td>
                                        <td>
                                            <input type="button" class="button" onClick="GetUploadify(1,'index_icon3_m','logo','')"  value="上传图片"/>
                                            <input type="text" id="index_icon3_m" class="input-sm" name="index_icon3_m" value="{$config.index_icon3_m}" >

                                            <if condition="$config['index_icon3_m'] neq null">
                                                &nbsp;&nbsp;
                                                <a target="_blank" href="{$config.index_icon3_m}"  >
                                                    <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                </a>
                                            </if>

                                        </td>
                                    </tr>
                                    <tr>
                                        <td>首页店铺类型图标4：</td>
                                        <td>
                                            <input type="button" class="button" onClick="GetUploadify(1,'index_icon4','logo','')"  value="上传图片"/>
                                            <input type="text" id="index_icon4" class="input-sm" name="index_icon4" value="{$config.index_icon4}" >
                                            <if condition="$config['index_icon4'] neq null">
                                                &nbsp;&nbsp;
                                                <a target="_blank" href="{$config.index_icon4}"  >
                                                    <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                </a>
                                            </if>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>首页店铺类型图标4：<br/><span style="color:red;">(鼠标经过时显示)</span></td>
                                        <td>
                                            <input type="button" class="button" onClick="GetUploadify(1,'index_icon4_m','logo','')"  value="上传图片"/>
                                            <input type="text" id="index_icon4_m" class="input-sm" name="index_icon4_m" value="{$config.index_icon4_m}" >

                                            <if condition="$config['index_icon4_m'] neq null">
                                                &nbsp;&nbsp;
                                                <a target="_blank" href="{$config.index_icon4_m}"  >
                                                    <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                </a>
                                            </if>

                                        </td>
                                    </tr>

                                    </tbody>

                                </table>

                                <div ><span style="color:#00FF00;font-size: 20px;margin:20px 100px;">手机端首页图片</span></div>

                                <table class="table table-bordered">
                                    <tbody>
                                    <tr>
                                        <td>首页banner图1：</td>
                                        <td>
                                            <input type="button" class="button" onClick="GetUploadify(1,'s_banner_img1','logo','')"  value="上传图片"/>
                                            <input type="text" id="s_banner_img1" class="input-sm" name="s_banner_img1" value="{$config.s_banner_img1}" >
                                            <if condition="$config['s_banner_img1'] neq null">
                                                &nbsp;&nbsp;
                                                <a target="_blank" href="{$config.s_banner_img1}"  >
                                                    <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                </a>
                                            </if>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>首页banner图2：</td>
                                        <td>
                                            <input type="button" class="button" onClick="GetUploadify(1,'s_banner_img2','logo','')"  value="上传图片"/>
                                            <input type="text" id="s_banner_img2" class="input-sm" name="s_banner_img2" value="{$config.s_banner_img2}" >
                                            <if condition="$config['s_banner_img2'] neq null">
                                                &nbsp;&nbsp;
                                                <a target="_blank" href="{$config.s_banner_img2}"  >
                                                    <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                </a>
                                            </if>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>首页banner图3：</td>
                                        <td>
                                            <input type="button" class="button" onClick="GetUploadify(1,'s_banner_img3','logo','')"  value="上传图片"/>
                                            <input type="text" id="s_banner_img3" class="input-sm" name="s_banner_img3" value="{$config.s_banner_img3}" >
                                            <if condition="$config['s_banner_img3'] neq null">
                                                &nbsp;&nbsp;
                                                <a target="_blank" href="{$config.s_banner_img3}"  >
                                                    <img width="25" height="25" src="/Public/images/image_icon.jpg">
                                                </a>
                                            </if>
                                        </td>
                                    </tr>



                                    </tbody>

                                </table>
                                <table class="table table-bordered">

                                    <tfoot>
                                    <tr>
                                        <td><input type="hidden" name="inc_type" value="{$inc_type}"></td>
                                        <td class="text-right"><input class="btn btn-primary" type="button" onclick="adsubmit()" value="保存"></td></tr>
                                    </tfoot>
                                </table>


                            </div>









                        </div>



                    </form><!--表单数据-->
                </div>
            </div>
        </div>
    </section>
</div>
<script>
    function adsubmit(){
        /*
         var site_url = $('input[name="site_url"]').val();
         var urlReg = /^(https?:\/\/)?([\da-z\.-]+)\.([a-z\.]{2,6})([\w \.-]*)*$/;
         if(!urlReg.exec(site_url))
         {
         alert('网站域名格式必须是 http://www.xxx.com');
         return false;
         }
         */
        $('#handlepost').submit();
    }

    $(document).ready(function(){
        //get_province();
    });

    function goset(obj){
        window.location.href = $(obj).attr('data-url');
    }
</script>
</body>
</html>